<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
		
		
<script>
		 
		
		  wx.config({
		    debug: false, 
		   appId: '{$jsdk.appId}',
				timestamp: {$jsdk.timestamp},
				nonceStr: '{$jsdk.nonceStr}',
				signature: '{$jsdk.signature}',
		    jsApiList: [
		      // 所有要调用的 API 都要加到这个列表中
		      'onMenuShareTimeline',
		      'onMenuShareAppMessage',
		    
		    ]
		  });
		
		  wx.ready(function () {
 			wx.onMenuShareTimeline({
			    title: '用你的跑故事换一次免费韩国樱花跑之旅',
			     link:'http://g4.shfyuan.com/xy/index.php?g=mobile&m=run&a=index',
			     imgUrl: 'http://g4.shfyuan.com/xy/Mobile/Webroot/gf/images/run/share-info.png',
			      trigger: function (res) {
			       
			      },
			      success: function (res) {
			    	 
			      },
			      cancel: function (res) {
			       
			      },
			      fail: function (res) {
			      }
		    });
		    
			wx.onMenuShareAppMessage({
			    link:'http://g4.shfyuan.com/xy/index.php?g=mobile&m=run&a=index',
			     title: '福利福利',
			    desc: '敢用你的跑故事，换一次免费韩国樱花跑之旅吗?',
			  	imgUrl: 'http://g4.shfyuan.com/xy/Mobile/Webroot/gf/images/run/share-info.png',
			    success: function () { 
			    	
			    },
			    cancel: function () { 
			        // 用户取消分享后执行的回调函数
			    }
		});
  });
		
			
		</script>